press button on enter

165

press button on enter -

searchInput.onkeyup = function (e) {
    if (e.key === 'Enter') {
        searchBtn.click();
    }
}

Comments

Submit
0 Comments